package com.hoshiicloud.payment.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hoshiicloud.common.rpc.Response;
import com.hoshiicloud.payment.Paylist;
import com.hoshiicloud.payment.param.CallBackRequest;
import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author Mr.wu
 * @since 2019-05-13
 */
public interface PaylistService extends IService<Paylist> {

    Response refundProcess(CallBackRequest param);

    Paylist getById(Long id);

    List<Paylist> getByParam(QueryWrapper queryWrapper,String key);

    @Override
    boolean save(Paylist entity);

    @Override
    boolean saveOrUpdate(Paylist entity);

    @Override
    boolean updateById(Paylist entity);

    IPage<Paylist> page(IPage<Paylist> page, Wrapper<Paylist> queryWrapper);

    boolean deleteById(Paylist entity);

    Response paymentProcess(CallBackRequest param);

    Paylist queryOneByPayOrderId(String payOrderId);
}
